.TH std::experimental::pmr::monotonic_buffer_resource::monotonic_buffer_resource 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::experimental::pmr::monotonic_buffer_resource::monotonic_buffer_resource \- std::experimental::pmr::monotonic_buffer_resource::monotonic_buffer_resource

.SH Synopsis
   monotonic_buffer_resource();                           \fB(1)\fP (library fundamentals TS)
   explicit monotonic_buffer_resource( memory_resource*   \fB(2)\fP (library fundamentals TS)
   upstream );
   explicit monotonic_buffer_resource( std::size_t        \fB(3)\fP (library fundamentals TS)
   initial_size );
   monotonic_buffer_resource( std::size_t initial_size,
                              memory_resource* upstream   \fB(4)\fP (library fundamentals TS)
   );
   monotonic_buffer_resource( void* buffer, std::size_t   \fB(5)\fP (library fundamentals TS)
   buffer_size );
   monotonic_buffer_resource( void* buffer, std::size_t
   buffer_size,                                           \fB(6)\fP (library fundamentals TS)
                              memory_resource* upstream
   );
   monotonic_buffer_resource( const                       \fB(7)\fP (library fundamentals TS)
   monotonic_buffer_resource& ) = delete;

   Constructs a monotonic_buffer_resource. The constructors not taking an upstream
   memory resource pointer uses the return value of
   std::experimental::pmr::get_default_resource() as the upstream memory resource.

   1,2) Sets the current buffer to null and the next buffer size to an
   implementation-defined size.
   3,4) Sets the current buffer to null and the next buffer size to a size no smaller
   than initial_size.
   5,6) Sets the current buffer to buffer and the next buffer size to buffer_size (but
   not less than 1). Then increase the next buffer size by an implementation-defined
   growth factor (which does not have to be integral).
   7) Copy constructor is deleted.

.SH Parameters

   upstream     - the upstream memory resource to use; must point to a valid memory
                  resource
   initial_size - the minimum size of the first buffer to allocate; must be greater
                  than zero
   buffer       - the initial buffer to use
   buffer_size  - the size of the initial buffer; cannot be greater than the number of
                  bytes in buffer

.SH Category:
     * Noindexed pages
